import { BasicColumn } from '@/components/Table';
import dayjs from 'dayjs';
export const getTableColumns = (): BasicColumn[] => [
  {
    title: '姓名',
    dataIndex: 'UserName',
  },
  {
    title: '账户/手机号',
    dataIndex: 'PhoneNumber',
  },
  {
    title: '邮箱',
    dataIndex: 'Email',
  },
  {
    title: '注册时间',
    dataIndex: 'CreateTime',
    width: 150,
    customRender: ({ text }: any) => {
      return dayjs(text).format('YYYY-MM-DD HH:mm:ss');
    },
  },
  {
    title: '区队',
    dataIndex: 'Class',
    edit: true,
  },
];
